package org.opensourcedea.ui.osdeagui;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction;

public class SaveDEAProblemAction extends Action implements IWorkbenchAction {
	
	
	private static final String ID = "org.opensourcedea.ui.osdeagui.OpenDEAProblemAction";
	

	public SaveDEAProblemAction() {
		setId(ID);
		
		Display.getDefault().syncExec( new Runnable() {  public void run() { } });
		
	}
	
	
	public void run() {
	
		//Save the DEAProblem
		Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();  
		String dialogBoxTitle = "Confirm";  
		String message = "You have executed the run() method of the SaveDEAProblemAction";  
		MessageDialog.openConfirm(shell, dialogBoxTitle, message);
		
	}
	
	

	@Override
	public void dispose() {
		// TODO Auto-generated method stub

	}

}
